<?php
echo $javascript->link('ckeditor/ckeditor');
$config['toolbar'] = array( 
    array( 'Bold', 'Italic', 'Underline', 'Strike' ), 
    array( 'Image', 'Link', 'Unlink', 'Anchor' ) 
); 
$config['height'] = 200;
?>
<?php
  echo $cksource->create('Upload',array('url'=>array('plugin'=>'gallery','controller'=>'gallery','action'=>'add'),'type' => 'file'));
  echo $form->input('Gallery.name');
  echo $form->hidden('Gallery.category_id');
  echo $form->input('Upload.0.file', array('type' => 'file'));
  //echo $form->input('Gallery.youtube');
  echo $cksource->ckeditor('Gallery.content', array( 'config'=>$config));
  echo $form->end('Save');
?>